#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>

int main()
{
    int a;
    while (scanf("%d", &a) != EOF)
    {
        if (a % 2 == 1)

        {
            int b = a;
            int i = 0;
            for (a ; a > 0; a = a - 2)
            {
                if (a - 2 > 0)
                {
                    int c = 0;
                    
                    printf("%c", '*');
                    for (c = a - 2; c > 0; c--)
                    {
                        printf("%c", ' ');
                    }
                    printf("%c\n", '*');  
                    int v = 0;
                    for(v=0;v<=i;v++)
                        printf("%c", ' ');
                    i++;
                    
                }

                if (a == 1)
                {
                    printf("%c\n", '*');
                }
                    
            }
            int e = 0; int g = 1; int d = 0;
            for (e = 3; e <=b; e = e + 2)
            {
                int c = 0;
               
                for(d= (b - 1) / 2;d>g;d--)
                    printf("%c", ' ');
                

                printf("%c", '*');
                for (c = 1; c <= e - 2; c++)
                {
                    printf("%c", ' ');

                }
                printf("%c\n", '*');
                g++;
            }
        }



        if (a % 2 == 0)
        {
            int b = a;
            int i = 0;
            for (a; a >= 0; a = a - 2)
            {
                if (a - 2 >= 2)
                {
                    int c = 0;
                    printf("%c", '*');
                    for (c = a - 2; c > 0; c--)
                    {
                        printf("%c", ' ');

                    }
                    printf("%c\n", '*');
                    int v = 0;
                    for (v = 0; v <= i; v++)
                        printf("%c", ' ');
                    i++;
                }
                if (a - 2 == 0)
                    printf("%s\n", "**");
           }
            int e = 0; int d = 0; int g = 1;
            for (e = 2; e <=b ; e = e + 2)
            {
                int c = 0;
                for (d = b / 2; d > g; d--)
                    printf("%c", ' ');


                printf("%c", '*');
                for (c = 1; c <= e - 2; c++)
                {
                    printf("%c", ' ');

                }
                printf("%c\n", '*');
                g++;
            }
        }




        }
        return 0;
   }